home *** CD-ROM | disk | FTP | other *** search
- <?php
- /* $Id: server_links.inc.php,v 2.13 2005/01/20 00:06:40 rabus Exp $ */
- // vim: expandtab sw=4 ts=4 sts=4:
-
- // Check parameters
-
- require_once('./libraries/common.lib.php');
- PMA_checkParameters(array('is_superuser', 'url_query'));
-
- /**
- * Counts amount of navigation tabs
- */
- $server_links_count_tabs = 0;
-
-
- /**
- * Put something in $sub_part
- */
- if (!isset($sub_part)) {
- $sub_part = '';
- }
-
-
- /**
- * Prepares links
- */
- if ($is_superuser) {
- $cfg['ShowMysqlInfo'] = TRUE;
- $cfg['ShowMysqlVars'] = TRUE;
- }
-
-
- /**
- * Displays tab links
- */
- if ($cfg['LightTabs']) {
- echo ' ';
- } else {
- echo '<table border="0" cellspacing="0" cellpadding="0" width="100%" id="topmenu">' . "\n"
- . ' <tr>' . "\n"
- . ' <td class="nav" align="left" nowrap="nowrap" valign="bottom">'
- . ' <table border="0" cellpadding="0" cellspacing="0"><tr>'
- . ' <td nowrap="nowrap"><img src="' .$GLOBALS['pmaThemeImage'] . 'spacer.png' .'" width="2" height="1" border="0" alt="" /></td>'
- . ' <td class="navSpacer"><img src="' .$GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="1" height="1" border="0" alt="" /></td>';
- }
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_db.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strDatabases.'" />' : '') . $strDatabases, 'server_databases.php', $url_query);
- if ($cfg['ShowMysqlInfo']) {
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_status.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strStatus.'" />' : '') . $strStatus, 'server_status.php', $url_query);
- }
- if ($cfg['ShowMysqlVars']) {
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_vars.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strServerTabVariables.'" />' : '') . $strServerTabVariables, 'server_variables.php', $url_query);
- }
- if (PMA_MYSQL_INT_VERSION >= 40100) {
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_asci.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strCharsets.'" />' : '') . $strCharsets, 'server_collations.php', $url_query);
- }
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_engine.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strEngines . '" />' : '') . $strEngines, 'server_engines.php', $url_query);
- if ($is_superuser) {
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_rights.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strPrivileges.'" />' : '') . $strPrivileges, 'server_privileges.php', $url_query);
- }
- if ($has_binlogs) {
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_tbl.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strBinaryLog.'" />' : '') . $strBinaryLog, 'server_binlog.php', $url_query);
- }
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_process.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strServerTabProcesslist.'" />' : '') . $strServerTabProcesslist, 'server_processlist.php', $url_query);
- echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_export.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strExport.'" />' : '') . $strExport, 'server_export.php', $url_query);
- if (!$cfg['LightTabs']) {
- echo ' <td nowrap="nowrap"><img src="' .$GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>'
- . ' </tr></table>' . "\n"
- . ' </td>' . "\n"
- . ' </tr>' . "\n"
- . '</table>';
- } else {
- echo '<br />';
- }
-
- /**
- * Displays a message
- */
- if (!empty($message)) {
- PMA_showMessage($message);
- unset($message);
- }
-
- ?>
- <br />
-